package edu.jptest.service;

import java.util.List;

import edu.jptest.bean.Examine;
import edu.jptest.bean.Favorite;

public interface IExamineService {

	// 判断试题正确性
	public boolean gradeExaminePaper(String answer, int rightAnswerId);

	// 得到每个大题的分数
	public List<Float> getGrades(List<List<Integer>> examinPaper,
			int examinePaperId, List<List<String>> answer);

	// 得到试卷总分数
	public float getGrade(List<Float> grades);

	// 插入考务
	public void insertExamine(Examine examine);
	
	//将试题添加到收藏夹中
	public void insertFavorite(Favorite favorite);
}
